<?php

namespace app\modules\Home\controllers;
use app\modules\Admin\models\Photo;

class IndexController extends \yii\web\Controller
{

    public function actionIndex()
    {
		// 轮播图信息
		$photoModel = Photo::find()->where(['status'=>1])->all();	

        return $this->render('index', ['photoModel'=>$photoModel]);
    }

}
